package com.bolt.auth.admin.api.feign;

import com.bolt.auth.admin.api.sys.dto.UserInfo;
import com.bolt.auth.admin.api.sys.entity.LoginLogEntity;
import com.bolt.convention.data.ResultMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="auth-biz")
public interface RemoteUserService {

    @GetMapping("/admin/sys/user/findByUserName/{username}" )
    ResultMessage<UserInfo> findByUserName(@PathVariable("username") String username);


    @PostMapping("/admin/sys/user/saveLoginLog")
    ResultMessage saveUserLoginLog(@RequestBody LoginLogEntity loginLogEntity);


}
